package com.ledi.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhongxp
 * @since 2018-08-01
 */
@TableName("t_school_qr")
public class SchoolQr extends Model<SchoolQr> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("school_id")
	private Long schoolId;
    /**
     * 乐校收收费二维码URL
     */
	@TableField("pic_url")
	private String picUrl;
    /**
     * 前端H5临时变量
     */
	@TableField("img_url")
	private String imgUrl;
    /**
     * 种类：0黑白，1彩色，2嵌入
     */
	private String type;
	@TableField("create_user")
	private String createUser;
	@TableField("update_user")
	private String updateUser;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SchoolQr{" +
			"id=" + id +
			", schoolId=" + schoolId +
			", picUrl=" + picUrl +
			", imgUrl=" + imgUrl +
			", type=" + type +
			", createUser=" + createUser +
			", updateUser=" + updateUser +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
